#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QThread>

#include "login/login.h"
#include "agvCar/agvcarpool.h"
#include "record/dailyrecord.h"
#include "ManagerInfo/managerinfo.h"

#include "exception/AckNormal.h"
#include "Device/managerserver.h"
#include "MainDesktop/desktopserver.h"
#include "taskmanager/taskmanagerserver.h"
#include "queryServer/thread/threadserver.h"


QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void WidgetInit(bool Visible);     //控件初始化
    void NewClassItiem();               //初始化新建对象
    void CreateConnect();

signals:

    //主界面翻译信号
    void sig_Translate();

public slots:
    void ON_UserLogin(QString UserNuber,QString UserName);//用户登录

private slots:

    void on_lab_Ico_clicked();

    void on_btn_Device_clicked();

    void on_btn_Edite_clicked();

    void on_btn_log_clicked();

    void on_action_CN_triggered();

    void on_action_VI_triggered();

private:
    Ui::MainWindow *ui;

    AckNormal *AckNormalItem;
    Login *loginItiem;                     //登录
    ManagerInfo *ManagerInfoItem;          //菜单管理
    dailyRecord *dailyRecordItem;          //日志

    threadServer *threadServerI;
    QThread *threadServerItem;

    desktopServer *desktopServerI;          //主页
    QThread *threaddesktopServer;

    managerServer *managerServerI;            //设备管理
    QThread *threaddeviceServer;

    taskManagerServer *taskManagerServerI;  //任务管理
    QThread *threadtaskManagerServer;

    agvCarPool *agvCarPool1;
    QThread *ThreadagvCarPool;

};
#endif // MAINWINDOW_H
